package tech.aistar.service.impl.dynamic;

import org.springframework.beans.factory.annotation.Autowired;
import tech.aistar.entity.dynamic.Video;
import tech.aistar.mapper.VideoMapper;
import tech.aistar.service.IVideoService;

import java.util.List;

/**
 * Created by David on 2019/9/28.
 */
public class VideoServiceImpl implements IVideoService {
    @Autowired
    private VideoMapper videoMapper;


    @Override
    public List<Video> findAllById(Integer id) {
        return videoMapper.findAllById(id);
    }

    @Override
    public void addVideo(Video video) {
        videoMapper.addVideo(video);
    }
}
